-- revive_attrib_up2
-- created by panyl
-- 复活增强

return {
    apply = function(prop, baseValue)
        return baseValue + prop[3];
    end,

    -- 死亡触发
    trigger = function(who, prop, arg)
        local propId = PropM.getPropId("attrib2");
        local round = prop[4];

        if round > 0 then
            round = CombatM.getRound() + round;
        end

        local arr = { propId, prop[2], prop[3], round, };

        -- 附加属性
        PropM.record(who, arr, "mixed");

        return true;
    end,

    record = function(target, prop, path)
        return false;
    end
};